package com.tencent.qf.web.convert;

import com.tencent.qf.common.log.ErrorLog;
import com.tencent.qf.common.pojo.OperateLogVO;
import com.tencent.qf.system.api.log.ErrorLogDTO;
import com.tencent.qf.system.api.log.OperateLogDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * Copyright (C) 2022 Limited, a Tencent company. All rights reserved.
 *
 * @author p_htaozhou@tencent.com
 * @create: 2022/9/8 16:14
 */
@Mapper
public interface Convert {
    Convert INSTANCE = Mappers.getMapper(Convert.class);

    ErrorLogDTO apiErrorLog2DTO(ErrorLog errorLog);

    OperateLogDTO apiOperateLogVO2DTO(OperateLogVO operateLogVO);
}
